import request from "@/utils/request";

export function queryPage(data) {
  return request({
    url: "/baseTogetherRuleMain/queryPage",
    method: "post",
    data
  })
}

export function queryList(data) {
  return request({
    url: "/baseTogetherRuleMain/queryList",
    method: "get",
    params: data
  })
}

export function insertByModel(data) {
  return request({
    url: "/baseTogetherRuleMain/insertByModel",
    method: "post",
    data
  })
}

export function updateByModel(data) {
  return request({
    url: "/baseTogetherRuleMain/updateByModel",
    method: "post",
    data
  })
}

export function deleteByModel(data) {
  return request({
    url: "/baseTogetherRuleMain/delete",
    method: "post",
    data
  })
}

export function saveDetail(data) {
  return request({
    url: "/baseTogetherRuleMain/saveDetail",
    method: "post",
    data
  })
}

export function queryDetailList(data) {
  return request({
    url: "/baseTogetherRuleMain/queryDetailList",
    method: "get",
    params: data
  })
}

export function queryBaseList(data) {
  return request({
    url: "/baseBoolean/queryBaseList",
    method: "get",
    params: data
  })
}
